<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/page.js"></script>
<title>首页</title>
</head>
<body>
	<jsp:include page="navigation.jsp"></jsp:include>
	<div class="container" style="margin-left: 190px;">
		<div class="topbar-inner">
			<div class="myhead">
				<span class="crumb-name">参加活动用户</span>
			</div>
		</div>
		<div class="topbar-inner">
			<div class="search">
				<button type="button" id="search_btn" onclick="back()" class="btn btn-default" style="margin-left: 20px; margin-top: 1px;">返回</button>
			</div>
		</div>
		<form id="pageForm" action="eventJoin" method="post">
			<input type="hidden" name="id" value="${ id }">
			<div style="margin: 20px 20px 20px 20px; text-align: center;">
				<table class="table table-bordered table-hover table-striped">
					<thead>
						<tr>
							<th>参与用户</th>
							<th>参与情况</th>
							<th>参与时间</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${ list }" var="l">
							<tr>
								<td>${ l.user.user_name }</td>
								<td><c:if test="${l.gift_id == 0 }">应邀参加活动</c:if> <c:if test="${l.gift_id > 0 }">赠送了礼物：${l.gift_name }</c:if></td>
								<td><fmt:formatDate value="${l.join_time }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
							</tr>
						</c:forEach>

					</tbody>
				</table>
				<input type="hidden" value="${ page.pageCount }" id="pageCount" name="pageCount" /> <input type="hidden" value="${ page.pageIndex }" id="pageIndex" name="pageIndex" />
				<c:if test="${ page == null }">
					<div style="font-size: larger;">暂无参加的用户</div>
				</c:if>
				<c:if test="${ page != null && page.pageCount > 1}">
					<ul id="pagination" class="pagination">

					</ul>
					<script type="text/javascript">
						setPage(document.getElementById("pagination"),
								parseInt($("#pageCount").val()), parseInt($(
										"#pageIndex").val()));
					</script>
				</c:if>
			</div>
		</form>
	</div>
	<script type="text/javascript">
		$(function() {
			$('.submenu_1_3').addClass('submenu_native');

		});

		function back() {
			history.go(-1);
		}
	</script>
</body>

</html>